#ifndef TIMEWHEEL_H
#define TIMEWHEEL_H

#include <myHeader.h>
#define MAX 20
typedef struct lastReadySet_s{
    int arry[MAX][2];
    int curIdx;
}lastReadySet_t;

typedef struct timeWheel_s{
    lastReadySet_t lastReadySet;
}timeWheel_t;

int checkAndClean(int epollFd,int timeWheelIdx,timeWheel_t *timeWheel);
int addToTimeWheel(timeWheel_t *timeWheel,int *isDel,int idx,int netFd,int hash[][2]);
#endif
